import Vue from 'vue'

export const teacher = {
  teacherList: params => {
    return Vue.prototype.$post('/teacher/dsxx/list', params)
  },
  teacherListByZgrd: params => {
    return Vue.prototype.$post('/teacher/dsxx/listByZgrd', params)
  },
  psffList: params => {
    return Vue.prototype.$post('/teacher/dsxx/psffList', params)
  },
  dsxxList: params => {
    return Vue.prototype.$post('/teacher/dsxx/dsxxList', params)
  },
  teacherResearchList: params => {
    return Vue.prototype.$post('/teacher/dsxx/yjfxToDsList', params)
  },
  teacherRecruitUnitList: params => {
    return Vue.prototype.$post('/teacher/dsxx/dszsdwList', params)
  },
  teacherRecruitUnit: params => { // 根据导师编号获取该导师的招生单位列表
    return Vue.prototype.$post('/teacher/dsxx/queryDszsdwByDsbh', params)
  },
  teacherRecruitUnitRemoveCheck: params => { // 移除导师招生单位检测
    return Vue.prototype.$post('/teacher/dsxx/queryCoundRemoveZsdw', params)
  },
  teacherRecruitUnitSave: params => { // 保存导师招生单位
    return Vue.prototype.$post('/teacher/dsxx/saveDszsdw', params)
  },
  teacherCheckRecordList: params => { // 导师审核履历李彪
    return Vue.prototype.$post('/teacher/dsxx/dsshllList', params)
  },
  teacherListByDwh: params => { // 根据院系码获取导师列表
    return Vue.prototype.$post('/teacher/dsxx/queryListByDwh', params)
  },
  queryListByStu: params => { // 根据学生信息获取可选导师列表
    return Vue.prototype.$post('/teacher/dsxx/queryListByStu', params)
  },
  teacherListByResearch: params => { // 根据研究方向获取该研究方向的所有导师
    return Vue.prototype.$post('/teacher/dsxx/queryListByDsyjfx', params)
  },
  modifyDsYjfxByYjfx: params => { // 根据研究方向修改导师研究方向
    return Vue.prototype.$post('/teacher/dsxx/modifyDsYjfxByYjfx', params)
  },
  addTeacher: params => { // 导师录入
    return Vue.prototype.$postJson('/teacher/dsxx/add', params)
  },
  teacherStatis: params => { // 导师信息统计
    return Vue.prototype.$post('/teacher/dsxx/dstj', params)
  },
  teacherOverAgeList: params => { // 超龄导师列表
    return Vue.prototype.$post('/teacher/dsxx/listByOverAge', params)
  },
  modifyTeacherAgeLine: params => { // 导师招生年龄线修改
    return Vue.prototype.$post('/teacher/dsxx/modifyAgeLine', params)
  },
  teacherInfo: params => { // 导师信息
    return Vue.prototype.$post('/teacher/dsxx/info', params)
  },
  teacherCheckInfo: params => { // 导师审核信息
    return Vue.prototype.$post('/teacher/dsxx/shInfo', params)
  },
  saveZsxx: params => { // 本年度招生信息初始化
    return Vue.prototype.$post('/teacher/dsxx/saveZsxx', params)
  },
  initialZsdw: params => { // 本年度招生单位初始化
    return Vue.prototype.$post('/teacher/dsxx/initialZsdw', params)
  },
  initialYjfx: params => { // 本年度招生研究方向初始化
    return Vue.prototype.$post('/teacher/dsxx/saveYjfxxl', params)
  },
  teacherZdzyInfo: params => { // 根据导师编号获取该导师指导专业和研究方向等信息
    return Vue.prototype.$post('/teacher/dsxx/queryListByDsxx', params)
  },
  modifyTeacherZdxx: params => { // 修改导师指导专业和导师研究方向
    return Vue.prototype.$postJson('/teacher/dsxx/modifyDszdzyAndDsyjfx', params)
  },
  teacherSupplement: params => { // 保存导师信息补充
    return Vue.prototype.$postJson('/teacher/dsxx/saveDsxxbc', params)
  },
  modifyTeacherInfo: params => { // 修改导师信息
    return Vue.prototype.$postJson('/teacher/dsxx/update', params)
  },
  teacherSupplementInfo: params => { // 获取导师补充信息
    return Vue.prototype.$post('/teacher/dsxx/getByDsxxbc', params)
  },
  deleteTeachers: params => { // 批量删除导师信息
    return Vue.prototype.$get(`/teacher/dsxx/delete/${params}`)
  },
  issueContract: params => { // 发放聘书
    return Vue.prototype.$post('/teacher/dsxx/issueContract', params)
  },
  teacherCheckList: params => { // 导师信息审核列表
    return Vue.prototype.$post('/teacher/dsxx/dsshList', params)
  },
  teacherFailCheckList: params => { // 导师信息审核列表
    return Vue.prototype.$post('/teacher/dsxx/dsshFailList', params)
  },
  teacherCheck: params => { // 导师信息审核
    return Vue.prototype.$post('/teacher/dsxx/check', params)
  },
  teacherStaffInfo: bh => { // 教职工信息
    return Vue.prototype.$get(`/teacher/dsxx/getJzgxxInfo/${bh}`)
  },
  queryTutorsResearchDirection: params => {
    return Vue.prototype.$post('/teacher/dsxx/queryTutorsResearchDirection', params)
  },
  teacherIsOverAge: params => { // 导师是否超龄
    return Vue.prototype.$post('/teacher/dsxx/dssfcl', params)
  },
  submitZgrd: params => { // 导师资格认定提交
    return Vue.prototype.$post('/teacher/dszszt/add', params)
  },
  checkZgrd: params => { // 导师资格认定审核
    return Vue.prototype.$post('/teacher/dszszt/check', params)
  },
  backZgrd: params => { // 导师资格认定退回
    return Vue.prototype.$post('/teacher/dszszt/back', params)
  },
  getCheckStatus: params => {
    return Vue.prototype.$post('/teacher/dszszt/getCheckStatus', params)
  },
  zsztChage: id => { // 教职工信息
    return Vue.prototype.$post(`/teacher/dsxx/zsztChange/${id}`)
  },
  batchStartToEnroll: params => { // 一键启用招生
    return Vue.prototype.$post('/teacher/dsxx/batchStartToEnroll', params)
  },
}
